package com.tom.cmd;

import com.tom.cmd.caipin.GuangDongCook;
import com.tom.cmd.caipin.JiangSuCook;
import com.tom.cmd.caipin.ShanDongCook;
import com.tom.cmd.caipin.SiChuanCook;
import com.tom.cmd.chushi.GuangDoneCuisine;
import com.tom.cmd.chushi.JiangSuCuisine;
import com.tom.cmd.chushi.ShanDongCuisine;
import com.tom.cmd.chushi.SiChuanCuisine;

/**
 * @author zx
 * @date 2024年12月20日 9:57
 */
public class TestDemo {
    public static void main(String[] args) {
        // 菜系 + 厨师；广东（粤菜）、江苏（苏菜）、山东（鲁菜）、四川（川菜）
        ICuisine guangDoneCuisine = new GuangDoneCuisine(new GuangDongCook());
        JiangSuCuisine jiangSuCuisine = new JiangSuCuisine(new JiangSuCook());
        ShanDongCuisine shanDongCuisine = new ShanDongCuisine(new ShanDongCook());
        SiChuanCuisine siChuanCuisine = new SiChuanCuisine(new SiChuanCook());

        // 点单
        XiaoEr xiaoEr = new XiaoEr();
        xiaoEr.order(guangDoneCuisine);
        xiaoEr.order(jiangSuCuisine);
        xiaoEr.order(shanDongCuisine);
        xiaoEr.order(siChuanCuisine);


        // 下单做菜
        xiaoEr.placeOrder();
    }
}
